package com.atguigu.yygh.user.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-user")
@RequestMapping("/api/userinfo/patient")
public interface PatientFeignClient {
    @GetMapping("/getPatientInfo/{patientId}")
    public Patient getPatientInfo(@PathVariable("patientId") Long patientId);
}
